package com.mapproject.industrymap.controller;

import com.mapproject.industrymap.service.ExampleCodeService;
import com.mapproject.industrymap.utils.DataPgdump;
import com.mapproject.industrymap.utils.ReturnValue;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/example")
public class ExampleCodeController {
    @Autowired
    ExampleCodeService exampleCodeService;
    @RequestMapping(value = "/getdata")
    public ReturnValue getdata(){
      //return exampleCodeService.getdata() ;
        return exampleCodeService.getdataone() ;
    }
}
